package com.study.common;

/**
 * @Description: 业务异常用于抛出
 * @ClassName: BusinessException
 * @Author: hupengming
 * @CreateTime: 2022-02-25 16:22
 */
public class BusinessException extends RuntimeException{

    private String code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, String code) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
